/**
 * @program: algorithm
 * @ClassName Single
 * @description:
 * @author: slfang
 * @create: 2025-04-24 18:58
 * @Version 1.0
 **/
public class Single {

    private static volatile Single single = null;

    private Single(){

    }

    public  static Single getSingle(){
        if(single==null){
            synchronized (Single.class){
                if(single==null){
                    single = new Single();
                }
            }
        }
        return single;
    }


}
